TestModel.applyEvent   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
1
import { AggregateRoot } from '@nestjs/cqrs';
2
import { TryAggregateRootEvent } from '../events/test.events';
3
4
export class TestModel extends AggregateRoot {
5
    constructor() {
6
        super();
7
    }
8
    applyEvent(message: string) {
9
        this.apply(new TryAggregateRootEvent(message));
10
    }
11
}
12